Skip to content

fix(execution): keep a run's plan and scripts out of its live record - #771

Merged
harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/run-record
Dec 3, 2026
Merged

harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/run-record

Conversation

@harenome

@harenome harenome commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Closes #360

What

  • run.json: live state, version 1, one byte position per job's events.jsonl, job caps, parts run again.
  • plan.json: plan and recipe, written once.
  • Restart after a completed save: each trial said once; a crash before it is A trial end can be said twice in a run's log when Nullius dies between the line and the record's save #765.
  • Scripts once each: run.sh, run-<part>.sh; no run-run.sh.
  • Old records restore and resume; run-run.sh processes are still found.
  • Names reserved first: two same-name launches get one 409, loser adopting nothing; a refused launch leaves no folder.
  • Parts sharing a script file are refused, execution.start included.

Verified

  • 300 trials: run.json after trial 1 5047 B to 419 B, last 15811 B to 421 B; total written 3133710 B to 126641 B; plan.json 1 write.
  • Routes 981 OK. Backend 3797: one failure per run, a different test each time (a host key test, the OSWorld2 proxy), each passing alone.

Risk

  • Older Nullius resumes no new-layout run.

Agents

Claude Code, Fable 5.2
Claude Code, Opus 5.5

run.json holds the live state with a version and one read position per
job's events feed, and what changes after the start: a job's cap, the
parts run again. The plan and the recipe go once into plan.json, each
script into its own file; a run of one part runs run.sh itself. A record
without a version keeps being read and resumed.

Closes ThinkFlowLab#360
@harenome
harenome marked this pull request as ready for review December 3, 2026 14:31
@github-actions github-actions Bot added the needs review Tests pass, no conflict, no verdict on its latest commit label Dec 3, 2026
@harenome
harenome merged commit 0f06e0b into ThinkFlowLab:main Dec 3, 2026
4 checks passed
@harenome
harenome deleted the fix/run-record branch December 3, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs review Tests pass, no conflict, no verdict on its latest commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A run's record holds its plan, its script three times and its live state, and is rewritten whole at every trial end

1 participant